]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginManager: Don't pass too many args to steal_fds
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 15 Apr 2014 21:52:50 +0000 (17:52 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 15 Apr 2014 21:53:37 +0000 (17:53 -0400)
js/misc/loginManager.js

index fac56774bd30ab683aea4d13893c62ea6fd9620b..0a82b75ca8b01f00938d86456a04203425b13c8f 100644 (file)
@@ -191,7 +191,7 @@ const LoginManagerSystemd = new Lang.Class({
                 let fd = -1;
                 try {
                     let [outVariant, fdList] = proxy.call_with_unix_fd_list_finish(result);
-                    fd = fdList.steal_fds(outVariant.deep_unpack())[0];
+                    fd = fdList.steal_fds()[0];
                     callback(new Gio.UnixInputStream({ fd: fd }));
                 } catch(e) {
                     logError(e, "Error getting systemd inhibitor");